package com.opages.cloud.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@Configuration
public class OpagesWebMvcConfiguration extends WebMvcConfigurationSupport {
    // 扩展AdqRequestMappingHandlerMapping，解决OpenFeign和RequestMapping加载的问题
    @Override
    protected RequestMappingHandlerMapping createRequestMappingHandlerMapping() {
        return new OpagesRequestMappingHandlerMapping();
    }
}
